﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.ComponentModel.Composition;
using Microsoft.Practices.ServiceLocation;

namespace Dynamic_UI_Framework
{
    /// <summary>
    /// Shell.xaml 的交互逻辑
    /// </summary>
    [Export]
    public partial class Shell : Window
    {
        public Shell()
        {
            InitializeComponent();
            UserControlBenchAdapter dapter = ServiceLocator.Current.GetInstance<UserControlBenchAdapter>();
            IBench b = dapter.Initialize(new UserControl(), "uuu");
            (b.Target as UserControl).Background = Brushes.Green;
            this.Content = b.Target;

        }
    }
}
